<%@ page import="java.util.HashMap" %>
<% 
	HashMap<String,Object> SSW_userinfo = (HashMap<String,Object>)session.getAttribute("userinfo");
        String SSW_username = (String)session.getAttribute("username");
        String SSW_userid = (String)SSW_userinfo.get("_userId").toString();
        String SSW_permission = (String)SSW_userinfo.get("_permission");
%>
<h3>User Information</h3>
<form name=userinfo method=post action=ActionDispatch onsubmit="return validateForm('userinfo')" >
<table>

<tr>
<td><p>Username (email) &nbsp;&nbsp; </p></td>
<td><p style="color:blue"><i> 
<b>
<%= SSW_username %>
</b> 
(Id <b> 
<%= SSW_userid %>
</b>,
Permission <b> 
<%= SSW_permission %>
</b>)
<span style="color:white">
............................................................................    
</span>   
</i></p></td>
</tr>

<tr>
<td><p>First name</p></td>
<td><p><input type=text name=_firstname value=<%= SSW_userinfo.get("_firstname") %> />
    &nbsp; &nbsp; &nbsp;
Last name &nbsp; &nbsp; <input type=text name=_lastname value=<%= SSW_userinfo.get("_lastname") %> /></p></td>
</tr>

<tr>
<td><p>Home phone</p></td>
<td><input type=text name=_homephone value=<%= SSW_userinfo.get("_homephone") %> /></td>
</tr>

<tr>
<td><p>Work phone</p></td>
<td><input type=text name=_workphone value=<%= SSW_userinfo.get("_workphone") %> /></td>
</tr>

<tr>
<td><p>Cell phone</p></td>
<td><input type=text name=_cellphone value=<%= SSW_userinfo.get("_cellphone") %> /></td>
</tr>

<tr>
<td><input type=submit value="Save changes" name=submit /></td>
</tr>

</table>
<input type="hidden" value="Info" name="action" ></input>
<input type="hidden" value="1" name="_complete"></input>
</form>

<hr/>
<button value=Cancel onclick='window.location.href="/fm2/User"' >Cancel</button> 
<button value=Reset onclick='window.location.href="/fm2/Info"' >Reset</button>
